home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
archive
/
bat4pkz.arj
/
ZIP©.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-02-14
|
3KB
|
120 lines
@echo off
cls
rem zip©.bat
if "%1" == "" goto help
if "%2" == "" goto message
if "%3" == "" goto message
cd %1:\%2
if not exist %1:\%2\nul goto error
if exist %1:\%2
%1:
cd %1:\%2
echo.
echo.
echo.
echo The directory %1:\%2 is found.
echo.
echo.
echo.
choice /c:cq /n Press C for Continue or Q to Quit?
if errorlevel 2 goto exit
if errorlevel 1 goto doit
:doit
cls
c:\pkzip\pkzip -ex -rp c:\zipit\%3
cls
echo.
echo.
echo.
dir c:\zipit\*.zip | find "-"
echo.
echo.
echo.
echo Make sure the %3.zip file fits onto a floppy !
echo.
echo HD 3.5 1457664 bytes
echo DD 3.5 730112 bytes
echo HD 5.25 1213952 bytes
echo.
pause
cls
echo.
echo.
echo.
echo ***********************************
echo *** A Floppydrive A:\ ***
echo *** B Floppydrive B:\ ***
echo *** T To current Directory ***
echo ***********************************
echo.
echo.
choice /c:abt Select the drive, were to move the %3.zip file..
if errorlevel 3 goto end
if errorlevel 2 goto bmove
if errorlevel 1 goto amove
:amove
cls
echo.
echo.
echo.
echo.
echo moving the %3.zip file to A-drive.....
copy c:\zipit\%3.zip a:
del c:\zipit\%3.zip
cls
goto end
:bmove
cls
echo.
echo.
echo.
echo.
echo moving the %3.zip file to B-drive......
copy c:\zipit\%3.zip b:
del c:\zipit\%3.zip
cls
goto end
:error
cls
echo.
echo.
echo.
echo The directory you specified does not exist...
echo Check the directory name and try again...
echo.
echo.
echo.
goto exit
:message
echo.
echo You must specify a directory after the drive name
echo and a zip file name after the directory name ....
echo if you are not sure, type zip© [enter]
goto exit
:help
echo.
echo.
echo Usage: zip©.bat (drive) (directory) (zip file name)
echo.
echo Example: zip© c windows win
echo.
echo This would zip up the Windows directory in C-drive with all it's
echo Subdirectories and create the win.zip file then it will move
echo the win.zip file to the Floppy drive you specify.....
echo.
echo Notice not to use any colons or backlashes!
goto exit
:end
cls
echo.
echo.
echo.
echo ╔═══════════════════════════╗
echo ║ DDDD OOO N N EEEE ║
echo ║ D D O O NN N E ║
echo ║ D D O O N N N EEE ║
echo ║ D D O O N NN E ║
echo ║ DDDD OOO N N EEEE ║
echo ╚═══════════════════════════╝
:exit